package com.itheima.mp.domain.vo;

import com.itheima.mp.domain.po.UserInfo;
import com.itheima.mp.enums.UserStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel(description = "用户VO实体")
@Data
public class UserVO {
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("详细信息，JSON风格")
    private UserInfo info;
    @ApiModelProperty("使用状态（1 正常 2 冻结）")
    private UserStatus status;
    @ApiModelProperty("账号余额")
    private Integer balance;
    @ApiModelProperty("用户收货地址")
    private List<AddressVO> addresses;
}
